home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Toolkits / Escritorio / TreePad Lite / fileformat.txt < prev    next >
Encoding:
Text File  |  2006-04-15  |  2.5 KB  |  77 lines

  1.  
  2. Technical documentation on the structure of the TreePad file format.
  3.  
  4. TreePad file format for TreePad .hjt files:
  5.  
  6. The basic file format is text/ascii.
  7. Inside the ascii file, the start of a TreePad file should be the line:
  8. <hj-Treepad version 2.7>
  9. where the version number can vary depending on the TreePad version which had been used to create/write the file.
  10.  
  11. each node looks like:
  12.  
  13.   (Data type indicator)
  14.   <node>
  15.   (Node title)
  16.   (level indicator, 0 meaning at tree level 0, 1 meaning one level up, etc.)
  17.   the following lines are part of the article text, until the closing line ('end node'), which is:
  18.   <end node> 5P9i0s8y19Z
  19.  
  20. example for one node:
  21.  
  22.   dt=text
  23.   <node>
  24.   mail from the President
  25.   4
  26.   Dear sir,
  27.  
  28.   I would like to invite all TreePad users into the Oval Office
  29.   to help me learn how to use TreePad.
  30.   Sincerely,
  31.  
  32.   G. Bush,
  33.   the White House
  34.   Washington
  35.   <end node> 5P9i0s8y19Z
  36.  
  37. The data type indicator 'dt=text' has been introduced by version 2.7 and will be ignored by earlier TreePad versions, so that the file format is backwards compatible. 
  38. 'dt=text' indicates that the type of data inside the article connected to the next node is 'plain text'. A future RTF-enabled TreePad will be able to have RTF articles, so that dt=RTF or possibly also dt=HTML will be included. 
  39.  
  40. The string 5P9i0s8y19Z is included to make sure that when someone types
  41. <end node> in the article, the program will not get confused into thinking
  42. the node has ended there (in the middle of the article). 
  43. The chance that someone types <end node> 5P9i0s8y19Z by accident into the article area
  44. is very much smaller. Not a very beautiful implementation, but it's simple
  45. and it works.
  46.  
  47. The order in which the nodes are listed in the TreePad file is determined
  48. by the order in which they would appear in a fully expanded tree,
  49. beginning at the top, and ending at the bottom.
  50.  
  51. E.g. a sequence of levels
  52. (the numbers are indicating the node levels):
  53.  
  54. 1 - 2 - 3 - 3 - 3 - 2
  55.  
  56. will be corresponding to the tree structure
  57. (the numbers are indicating the node levels):
  58.  
  59. 1 ___2
  60. |    |___3
  61. |    |___3
  62. |    |___3
  63. |
  64. |____2
  65.  
  66.  
  67. Warning: if you store this text in TreePad, do not include any 
  68. "<end node> 5P9i0s8y19Z" as appearing in this text !!!!!
  69.  
  70. More information on TreePad file formats can be found in the TreePad documentation and manuals section:
  71. http://www.treepad.com/docs/
  72.  
  73. TreePad home page: http://www.treepad.com
  74. Freebyte.com home page: http://www.freebyte.com
  75. Contact: http://www.treepad.com/support/
  76.  
  77.